CVE-2022-23607
Unsafe handling of user-specified cookies in treq
Description
treq is an HTTP library inspired by requests but written on top of Twisted's Agents. Treq's request methods (`treq.get`, `treq.post`, etc.) and `treq.client.HTTPClient` constructor accept cookies as a dictionary. Such cookies are not bound to a single domain, and are therefore sent to *every* domain ("supercookies"). This can potentially cause sensitive information to leak upon an HTTP redirect to a different domain., e.g. should `https://example.com` redirect to `http://cloudstorageprovider.com` the latter will receive the cookie `session`. Treq 2021.1.0 and later bind cookies given to request methods (`treq.request`, `treq.get`, `HTTPClient.request`, `HTTPClient.get`, etc.) to the origin of the *url* parameter. Users are advised to upgrade. For users unable to upgrade Instead of passing a dictionary as the *cookies* argument, pass a `http.cookiejar.CookieJar` instance with properly domain- and scheme-scoped cookies in it.
INFO
Published Date :
Feb. 1, 2022, 11:15 a.m.
Last Modified :
Nov. 21, 2024, 6:48 a.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source | 
|---|---|---|---|---|---|---|
| CVSS 2.0 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] | 
Solution
- There is no known solution at this time.
Public PoC/Exploit Available at Github
                                            CVE-2022-23607 has a 1 public
                                            PoC/Exploit available at Github.
                                            Go to the Public Exploits tab to see the list.
                                        
References to Advisories, Solutions, and Tools
                                            Here, you will find a curated list of external links that provide in-depth
                                            information, practical solutions, and valuable tools related to
                                            CVE-2022-23607.
                                        
| URL | Resource | 
|---|---|
| https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc | Mitigation Third Party Advisory | 
| https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html | Mailing List Third Party Advisory | 
| https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc | Mitigation Third Party Advisory | 
| https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html | Mailing List Third Party Advisory | 
CWE - Common Weakness Enumeration
            While CVE identifies
            specific instances of vulnerabilities, CWE categorizes the common flaws or
            weaknesses that can lead to vulnerabilities. CVE-2022-23607 is
            associated with the following CWEs:
        
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
            (CAPEC)
            stores attack patterns, which are descriptions of the common attributes and
            approaches employed by adversaries to exploit the CVE-2022-23607
            weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
test 反向辣鸡数据投放 CVE-2022-23305 工具 利用 教程 Exploit POC
cve-2020-
Results are limited to the first 15 repositories due to potential performance issues.
			The following list is the news that have been mention
			CVE-2022-23607 vulnerability anywhere in the article.
		
                The following table lists the changes that have been made to the
                CVE-2022-23607 vulnerability over time.
            
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
- 
                            CVE Modified by af854a3a-2127-422b-91ae-364da2661108Nov. 21, 2024 Action Type Old Value New Value Added Reference https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc Added Reference https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html 
- 
                            CVE Modified by [email protected]May. 14, 2024 Action Type Old Value New Value 
- 
                            Reanalysis by [email protected]Jan. 26, 2024 Action Type Old Value New Value Removed CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N Removed CWE NIST CWE-601 Added CWE NIST CWE-425 
- 
                            Modified Analysis by [email protected]May. 01, 2022 Action Type Old Value New Value Changed Reference Type https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html No Types Assigned https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html Mailing List, Third Party Advisory Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* 
- 
                            CVE Modified by [email protected]Mar. 18, 2022 Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2022/03/msg00025.html [No Types Assigned] Added CWE GitHub, Inc. CWE-200 
- 
                            Initial Analysis by [email protected]Feb. 08, 2022 Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:N/A:N) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N Changed Reference Type https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc No Types Assigned https://github.com/twisted/treq/security/advisories/GHSA-fhpf-pp6p-55qc Mitigation, Third Party Advisory Added CWE NIST CWE-601 Added CPE Configuration OR *cpe:2.3:a:twistedmatrix:treq:*:*:*:*:*:*:*:* versions from (including) 21.1.0 up to (excluding) 22.1.0 
- 
                            CVE Modified by [email protected]Feb. 01, 2022 Action Type Old Value New Value Changed Description treq is an HTTP library inspired by requests but written on top of Twisted's Agents. Treq's request methods (`treq.get`, `treq.post`, etc.) and `treq.client.HTTPClient` constructor accept cookies as a dictionary. Such cookies are not bound to a single domain, and are therefore sent to *every* domain ("supercookies"). This can potentially cause sensitive information to leak upon an HTTP redirect to a different domain., e.g. should `https://example.com` redirect to `http://cloudstorageprovider.com` the latter will receive the cookie `session`. Treq 2021.1.0 and later bind cookies given to request methods (`treq.request`, `treq.get`, `HTTPClient.request`, `HTTPClient.get`, etc.) to the origin of the *url* parameter. Users are advised to upgrade. For users unable to upgrade Instead of passing a dictionary as the *cookies* argument, pass a `http.cookiejar.CookieJar` instance with properly domain- and scheme-scoped cookies in it. treq is an HTTP library inspired by requests but written on top of Twisted's Agents. Treq's request methods (`treq.get`, `treq.post`, etc.) and `treq.client.HTTPClient` constructor accept cookies as a dictionary. Such cookies are not bound to a single domain, and are therefore sent to *every* domain ("supercookies"). This can potentially cause sensitive information to leak upon an HTTP redirect to a different domain., e.g. should `https://example.com` redirect to `http://cloudstorageprovider.com` the latter will receive the cookie `session`. Treq 2021.1.0 and later bind cookies given to request methods (`treq.request`, `treq.get`, `HTTPClient.request`, `HTTPClient.get`, etc.) to the origin of the *url* parameter. Users are advised to upgrade. For users unable to upgrade Instead of passing a dictionary as the *cookies* argument, pass a `http.cookiejar.CookieJar` instance with properly domain- and scheme-scoped cookies in it. Removed CWE GitHub, Inc. CWE-200 
Vulnerability Scoring Details
Base CVSS Score: 6.5
Base CVSS Score: 4.3
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.26 }} -0.08%
score
0.49111
percentile
 
                         
                         
                         
                                             
                                            